﻿using Synology.AudioStationApi;

namespace PartTwo
{
    class SearchResultViewModelFactory : ISearchResultViewModelFactory
    {
        private readonly IPlayerService _playerService;

        public SearchResultViewModelFactory(IPlayerService playerService)
        {
            _playerService = playerService;            
        }

        public ISearchResultViewModel Create(SynoTrack track)
        {
            return new SearchResultViewModel(track, _playerService);
        }
    }
}